#include<iostream>
using namespace std;
int main(){
	float Open,High,Low,Close;
	cin>>Open>>High>>Low>>Close;
	int BS_flag=(Close<Open);
	int RH_flag=(Close>Open);
	int RC_flag=(Close==Open);
	int LS_flag=((Low<Open)&&(Low<Close));
	int US_flag=((High>Open)&&(High>Close));
	
	if(BS_flag){
		cout<<"BW-Solid";
	}
	if(RH_flag){
		cout<<"R-Hollow";
	}
	if(RC_flag){
		cout<<"R-Cross";
	}

	if(LS_flag+US_flag){
		cout<<" with ";
	}
	if(LS_flag){
		cout<<"Lower Shadow";
	}
	if(LS_flag*US_flag){
		cout<<" and ";
	}
	if(US_flag){
		cout<<"Upper Shadow";
	}
	cout<<endl;
	return 0;
}
